#ifndef MAP_H_
#define MAP_H_

#include <vector>

using namespace std;

class Map
{
public:
	Map(int y_length=50,int x_length=50):
		x_max(x_length),
		y_max(y_length),
		total_area(x_length*y_length) {initializeGrid();};

	void initializeGrid();

	void populateMap(int number);
	void placeBarrier(int y,int x);

	void resetSize(int y,int x);

	bool isBarrierAtLocation(int y,int x);

	vector<vector<bool> > outputGrid(){return xygrid;};

	int getMaxX(){return x_max;};
	int getMaxY(){return y_max;};
private:
	int x_max;
	int y_max;
	int total_area;

	//xygird is [y][x]
	vector< vector<bool> > xygrid;


};


#endif /* MAP_H_ */
